#include "process.h"

void download()
{
    double total = 1024.0;
    double current = 0.0;
    printf("Downloding...\n");
    process_fflush(current, total);
    while(current < total)
    {
        usleep(100000);
        current += 32;
        process_fflush(current, total);
    }

    printf("\n%.1fMB downlode done\n", total);
}

int main()
{
    //process_v1();
    download();
    return 0;
}
